<?php

namespace module\manage\validate;

use app\Validate;

class Order extends Validate
{
    /**
     * 验证场景.
     *
     * @var array<array>
     */
    protected $scene = [
        'update' => ['id', 'status']
    ];
    /**
     * Get the validation rules that apply to the request.
     *
     * @var array<string>
     */
    protected $rule = [
        'id' => 'require|integer|max:10',
        'status' => 'integer|in:i,2', // 学员
    ];
}